USE [TRANSPORTS]
GO

/****** Object:  Table [dbo].[NHANVIEN]    Script Date: 01/17/2013 19:08:57 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[NHANVIEN](
	[MANV] [varchar](10) NOT NULL,
	[HOTEN] [nvarchar](200) NOT NULL,
	[NGAYSINH] [datetime] NULL,
	[DIACHI] [nvarchar](255) NOT NULL,
	[DIENTHOAI] [nvarchar](100) NULL,
	[EMAIL] [nvarchar](50) NULL,
	[MACV] [varchar](10) NULL,
	[CMND] [varchar](20) NULL,
	[ISPHANCONG] [bit] NULL,
 CONSTRAINT [PK_NHANVIEN] PRIMARY KEY CLUSTERED 
(
	[MANV] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[NHANVIEN]  WITH CHECK ADD  CONSTRAINT [FK_NHANVIEN_CONGVIEC] FOREIGN KEY([MACV])
REFERENCES [dbo].[CONGVIEC] ([MACV])
GO

ALTER TABLE [dbo].[NHANVIEN] CHECK CONSTRAINT [FK_NHANVIEN_CONGVIEC]
GO

